﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JSON;

namespace Facebook_Graph_Toolkit.FacebookObjects {
    /// <summary>
    /// Represents a location
    /// </summary>
    public class Location {
        JsonObject data;
        internal Location(JsonObject JO) { data = JO; }
        /// <summary>
        /// The city at this location
        /// </summary>
        public string City { get { return data["city"].ToString(); } }
        /// <summary>
        /// The country at this location
        /// </summary>
        public string Country { get { return data["country"].ToString(); } }
        /// <summary>
        /// The Latitude of this location
        /// </summary>
        public double Latitude { get { return (double)data["latitude"]; } }
        /// <summary>
        /// The Longitude of this location
        /// </summary>
        public double Longitude { get { return (double)data["longitude"]; } }
        /// <summary>
        /// The street of this location
        /// </summary>
        public string Street { get { return (string)data["street"]; } }
    }
}
